﻿@model Test710.Models.Player

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm("Create", "Player", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Player</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClubId, "Club")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ClubId", String.Empty)
            @Html.ValidationMessageFor(model => model.ClubId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FullName)
            @Html.ValidationMessageFor(model => model.FullName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerImage)
        </div>
        <div class="editor-field">
            <input id="ImagePath" title="Upload a product image" 
                                  type="file" name="file" />
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegisteredIn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegisteredIn)
            @Html.ValidationMessageFor(model => model.RegisteredIn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JerseySize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JerseySize)
            @Html.ValidationMessageFor(model => model.JerseySize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShoeSize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShoeSize)
            @Html.ValidationMessageFor(model => model.ShoeSize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JerseyNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JerseyNumber)
            @Html.ValidationMessageFor(model => model.JerseyNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NationalJerseyNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NationalJerseyNo)
            @Html.ValidationMessageFor(model => model.NationalJerseyNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FavoritePosition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FavoritePosition)
            @Html.ValidationMessageFor(model => model.FavoritePosition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Leg)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Leg)
            @Html.ValidationMessageFor(model => model.Leg)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AgentId, "Agent")
        </div>
        <div class="editor-field">
            @Html.DropDownList("AgentId", String.Empty)
            @Html.ValidationMessageFor(model => model.AgentId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Injuries)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Injuries)
            @Html.ValidationMessageFor(model => model.Injuries)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicComment)
            @Html.ValidationMessageFor(model => model.PublicComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerCode)
            @Html.ValidationMessageFor(model => model.PlayerCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerImage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerImage)
            @Html.ValidationMessageFor(model => model.PlayerImage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerGender)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerGender)
            @Html.ValidationMessageFor(model => model.PlayerGender)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BloodGroup)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BloodGroup)
            @Html.ValidationMessageFor(model => model.BloodGroup)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Weight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Weight)
            @Html.ValidationMessageFor(model => model.Weight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Height)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Height)
            @Html.ValidationMessageFor(model => model.Height)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfBirth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfBirth)
            @Html.ValidationMessageFor(model => model.DateOfBirth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlaceOfBirtth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlaceOfBirtth)
            @Html.ValidationMessageFor(model => model.PlaceOfBirtth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nationality)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nationality)
            @Html.ValidationMessageFor(model => model.Nationality)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportNumber)
            @Html.ValidationMessageFor(model => model.PassportNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportIssueDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportIssueDate)
            @Html.ValidationMessageFor(model => model.PassportIssueDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportExpireDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportExpireDate)
            @Html.ValidationMessageFor(model => model.PassportExpireDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportIssuePlace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportIssuePlace)
            @Html.ValidationMessageFor(model => model.PassportIssuePlace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCard)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCard)
            @Html.ValidationMessageFor(model => model.IDCard)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfCreation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfCreation)
            @Html.ValidationMessageFor(model => model.DateOfCreation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IssuePlace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IssuePlace)
            @Html.ValidationMessageFor(model => model.IssuePlace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Country)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Country)
            @Html.ValidationMessageFor(model => model.Country)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.County)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.County)
            @Html.ValidationMessageFor(model => model.County)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Postcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Postcode)
            @Html.ValidationMessageFor(model => model.Postcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsPublicContact)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsPublicContact)
            @Html.ValidationMessageFor(model => model.IsPublicContact)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateNumber)
            @Html.ValidationMessageFor(model => model.PrivateNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkNumber)
            @Html.ValidationMessageFor(model => model.WorkNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateCell)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateCell)
            @Html.ValidationMessageFor(model => model.PrivateCell)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateEmail)
            @Html.ValidationMessageFor(model => model.PrivateEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkEmail)
            @Html.ValidationMessageFor(model => model.WorkEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCountry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCountry)
            @Html.ValidationMessageFor(model => model.RegularCountry)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularAddress)
            @Html.ValidationMessageFor(model => model.RegularAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCity)
            @Html.ValidationMessageFor(model => model.RegularCity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCounty)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCounty)
            @Html.ValidationMessageFor(model => model.RegularCounty)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularPostcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularPostcode)
            @Html.ValidationMessageFor(model => model.RegularPostcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerFromdate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerFromdate)
            @Html.ValidationMessageFor(model => model.CareerFromdate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerEnddate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerEnddate)
            @Html.ValidationMessageFor(model => model.CareerEnddate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerWorkplace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerWorkplace)
            @Html.ValidationMessageFor(model => model.CareerWorkplace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerPosition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerPosition)
            @Html.ValidationMessageFor(model => model.CareerPosition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EducationLevel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EducationLevel)
            @Html.ValidationMessageFor(model => model.EducationLevel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Major)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Major)
            @Html.ValidationMessageFor(model => model.Major)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Language)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Language)
            @Html.ValidationMessageFor(model => model.Language)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FamilyBackground)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FamilyBackground)
            @Html.ValidationMessageFor(model => model.FamilyBackground)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

